package com.tunxing.行为型.责任链设计模式2;

public class Client {

    public static void main(String[] args) {
        Handler1 handler1 = new Handler1();
        Handler2 handler2 = new Handler2();
        handler1.addNextHandler(handler2);
        Request request = new Request();
        request.setId(2);
        request.setMessage("责任链设计模式2");
        handler1.handleRequest(request);
    }
}
